<%-- 
    Document   : data access failure
    Created on : Sep 16, 2008, 
    Author     : Heweiya
--%>
<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<html>
	<head>
        <title>#{messages['dataaccess.failure.title']}</title>
        
		<script src="<c:url value="/script/jquery-1.2.6.js"/>"
			type="text/javascript"></script>
		<link href="<%=request.getContextPath()%>/style/style.css"
			type="text/css" rel="stylesheet" />
		<link href="<%=request.getContextPath()%>/style/ie6.css"
			type="text/css" rel="stylesheet" />
	</head>
	<body>
		<div id="wrapper">
			<!--START: Header -->
			
			<div class="menu">
					
			</div>
			<!--START: conent -->
			<div id="content">
				<div style="overflow:hidden;width:100%;background-color:#F2F2F2;text-align:left;">
					<h3>
						<spring:message code="dataaccess.failure.title" />:
					</h3>
				</div>
				<div style="overflow:hidden;width:100%;background-color:#F2F2F2;text-align:left;">
					<c:out value="${requestScope.exception.message}" />
				</div>

				<div style="overflow:hidden;width:100%;background-color:#F2F2F2;text-align:left;">
					<a href="#" onclick="$('#detail_error_msg').toggle();"><spring:message code="dataaccess.failure.detail" /></a>
				</div>
				<div id="detail_error_msg" style="display: none">
					<textarea style="width: 100%; font-size: 8pt;" wrap="off" rows="10">
					<%
						Exception ex = (Exception) request.getAttribute("exception");
						ex.printStackTrace(new java.io.PrintWriter(out));
					%>
					</textarea>
				</div>
				<div>
					<button onclick="history.back();">
						Back
					</button>
				</div>
			</div>
			<!--END: conent -->
			<!--START: Footer -->
			<div class="footer"></div>
			<!--END: Footer -->
		</div>
	</body>
</html>